Skip to content

fix: upgrade @openrouter/ai-sdk-provider to v2.x for AI SDK v6 compatibility#2040

Merged
nick-inkeep merged 1 commit intomainfrom
fix/openrouter-ai-sdk-peer-dep
Feb 16, 2026
Merged

fix: upgrade @openrouter/ai-sdk-provider to v2.x for AI SDK v6 compatibility#2040
nick-inkeep merged 1 commit intomainfrom
fix/openrouter-ai-sdk-peer-dep

Conversation

@nick-inkeep
Copy link
Collaborator

Summary

  • Upgrades @openrouter/ai-sdk-provider from ^1.2.0 (resolving to 1.5.4) to ^2.1.0 (resolving to 2.2.3)
  • Eliminates the npm warn ERESOLVE peer dependency conflict users see during create-agents quickstart

Problem

@openrouter/ai-sdk-provider@1.5.4 declares peer ai@"^5.0.0", but @inkeep/agents-core depends on ai@6.0.14. This causes npm to emit confusing peer dependency warnings when users run create-agents:

npm warn ERESOLVE overriding peer dependency
npm warn Could not resolve dependency:
npm warn peer ai@"^5.0.0" from @openrouter/ai-sdk-provider@1.5.4

Fix

@openrouter/ai-sdk-provider@2.1.0+ declares peer ai@"^6.0.0", which is compatible with our ai@6.0.14. The high-level API (createOpenRouter, openrouter) maintains the same signature — the breaking changes in v2.x are internal type migrations (ProviderV2 → V3) that align with AI SDK v6.

Test plan

  • All 30 ModelFactory tests pass (exercises createOpenRouter and openrouter directly)
  • All 1455 agents-core tests pass
  • Typecheck passes for agents-core and agents-api
  • Lint passes across all packages

🤖 Generated with Claude Code

…ibility

@openrouter/ai-sdk-provider@1.5.4 declared peer ai@"^5.0.0", conflicting
with the repo's ai@6.0.14. Upgrading to ^2.1.0 (resolves to 2.2.3) which
declares peer ai@"^6.0.0", eliminating the ERESOLVE warning users see
during create-agents quickstart.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 16, 2026 10:42am
agents-docs Ready Ready Preview, Comment Feb 16, 2026 10:42am
agents-manage-ui Ready Ready Preview, Comment Feb 16, 2026 10:42am

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 16, 2026

🦋 Changeset detected

Latest commit: b8d7ebd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@inkeep/agents-core Patch
@inkeep/agents-api Patch
@inkeep/agents-manage-ui Patch
@inkeep/agents-cli Patch
@inkeep/agents-sdk Patch
@inkeep/agents-work-apps Patch
@inkeep/ai-sdk-provider Patch
@inkeep/create-agents Patch
@inkeep/agents-manage-mcp Patch
@inkeep/agents-mcp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@inkeep
Copy link
Contributor

inkeep bot commented Feb 16, 2026

No documentation updates required for this PR. This is an internal dependency version bump with no user-facing API changes.

Copy link
Contributor

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Summary

(0) Total Issues | Risk: Low

This is a well-executed dependency upgrade that cleanly resolves the peer dependency conflict between @openrouter/ai-sdk-provider and AI SDK v6.

💭 Consider (1) 💭

💭 1) create-agents-template/pnpm-lock.yaml Template lockfile will update on next release

Issue: The create-agents-template lockfile still pins @openrouter/ai-sdk-provider@1.5.4 (which has peer ai@"^5.0.0"). Users running create-agents will continue to see the peer dependency warning until they receive the next published version of @inkeep/agents-core.

Why: This is expected behavior — the template uses "@inkeep/agents-core": "^0.48.2" which will resolve to the fixed version once published. This is a chicken-and-egg situation inherent to the release process, not a defect in this PR.

Fix: No action required in this PR. After release, users running pnpm install fresh or pnpm update @inkeep/agents-core will get the fixed version. The template lockfile will naturally update in future maintenance.

Refs: create-agents-template/pnpm-lock.yaml:2187


✅ APPROVE

Summary: Clean dependency upgrade that correctly resolves the AI SDK v6 peer dependency conflict. The changeset is well-formed (patch is the right classification), the version range is consistent with existing patterns, and the test coverage confirms API compatibility. Ship it! 🚀

Discarded (4)
Location Issue Reason Discarded
packages/agents-core/package.json:151 Caret range ^2.1.0 allows minor/patch drift Consistent with existing codebase pattern; reviewer noted "no action required"
.changeset/regular-blue-chameleon.md Changeset is well-formed Positive confirmation, not an issue
pnpm-lock.yaml Lockfile changes are proportional and correct Positive confirmation, not an issue
packages/agents-core/package.json Major version bump correctly classified as patch Positive confirmation, not an issue
Reviewers (2)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
pr-review-devops 4 0 1 0 0 0 3
pr-review-breaking-changes 2 0 0 0 0 0 2
Total 6 0 1 0 0 0 5

@github-actions github-actions bot deleted a comment from claude bot Feb 16, 2026
@inkeep
Copy link
Contributor

inkeep bot commented Feb 16, 2026

No documentation updates needed — this is an internal dependency fix with no user-facing API changes.

@nick-inkeep nick-inkeep merged commit 24e75fb into main Feb 16, 2026
12 of 13 checks passed
@nick-inkeep nick-inkeep deleted the fix/openrouter-ai-sdk-peer-dep branch February 16, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments